package cn.source.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;

/**
 * banner对象 aa_banner
 * 
 * @author sourcebyte.vip
 * @date 2023-08-04
 */
public class AaBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** banner名称 */
    @Excel(name = "banner名称")
    private String bannerName;

    /** banner图片地址 */
    @Excel(name = "banner图片地址")
    private String bannerPic;

    /** 状态 0下架 1上架 */
    @Excel(name = "状态 0下架 1上架")
    private Integer bannerStatus;

    /** banner排序，越大越靠前 */
    @Excel(name = "banner排序，越大越靠前")
    private Long bannerSort;

    /** 0正常 1删除 */
    private Integer delFlag;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBannerName(String bannerName) 
    {
        this.bannerName = bannerName;
    }

    public String getBannerName() 
    {
        return bannerName;
    }
    public void setBannerPic(String bannerPic) 
    {
        this.bannerPic = bannerPic;
    }

    public String getBannerPic() 
    {
        return bannerPic;
    }
    public void setBannerStatus(Integer bannerStatus) 
    {
        this.bannerStatus = bannerStatus;
    }

    public Integer getBannerStatus() 
    {
        return bannerStatus;
    }
    public void setBannerSort(Long bannerSort) 
    {
        this.bannerSort = bannerSort;
    }

    public Long getBannerSort() 
    {
        return bannerSort;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bannerName", getBannerName())
            .append("bannerPic", getBannerPic())
            .append("bannerStatus", getBannerStatus())
            .append("bannerSort", getBannerSort())
            .append("delFlag", getDelFlag())
            .append("createDate", getCreateDate())
            .toString();
    }
}
